package com.xx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xx.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author myx
 * @since 2024-12-23
 */
@Getter
@Setter
@TableName("sys_user")
@Schema(name = "User", description = "")
public class User extends BaseEntity {

    @Schema(description = "登录用户名")
    @TableField("username")
    private String username;

    @Schema(description = "登录密码")
    @TableField("password")
    private String password;

    @Schema(description = "用户头像")
    @TableField("head_pic_url")
    private String headPicUrl;

    @Schema(description = "用户状态：0：正常，1：锁定")
    @TableField("state")
    private String state;
}
